import {request} from "@/utils/request.js"
export function apiGetBanner(){
	return request({
		url:'/homeBanner',
		method:"POST",
		})
}

export function apigetDatyRandom(){

	return request({url:'/randomWall'})
}

export function apigetNotice(data={}){
	return request({
		url:'/wallNewsList',
		data,
		// method:"post"
		})
}

export function apigetClassify(data){
	return request({
		url:'/classify',
		data
		})
}

//分类之后列表
export function apiGetClassList(data){
	return request({
		url:'/wallList',
		data
		})
}

//评分接口
export function apiGetsetupScore(data){
	return request({
		url:'/setupScore',
		data
		})
}

//壁纸下载
export function apiWriteDownload(data){
	return request({
		url:'/downloadWall',
		data
		})
}



//单个壁纸详情
export function apiDetailWall(data){
	return request({
		url:'/detailWall',
		data
		})
}


//个人信息
export function apiUserInfo(data){
	return request({
		url:'/userInfo',
		data
		})
}


//我的评分下载列表
export function apiGetHistorysList(data){
	return request({
		url:'/userWallList',
		data
		})
}

//获取公告
export function apiNoticeDetail(data){
	return request({
		url:'/wallNewsDetail',
		data
		})
}

//搜索壁纸
export function apiSearchData(data){
	return request({
		url:'/searchWall',
		data
		})
}

//---------------------------------------
//loopback获取壁纸
export function wallpapers(){
	return request({
		url: '/wallpapers/list'
	})
}

export function banners(){
	return request({
		url: '/Banners/list'
	})
}
